package com.qinhao.loveCrowdFunding.mapper;

import com.qinhao.loveCrowdFunding.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import com.qinhao.loveCrowdFunding.req.DescriptionRequest;
import com.qinhao.loveCrowdFunding.req.UpdateDescriptionRequest;


@Mapper
public interface DetailInformationMapper {
    // 写入的simple信息
    void writeSimpleInformation(WriteSimpleInformationEntity writeSimpleInformationEntity);
    // 写入的detail信息
    void writeDetailInformation(WriteDetailInformationEntity writeDetailInformationEntity);
    // 写入telephoneNumber
    void writeTelephoneNumber2User(WriteTelephoneEntity writeTelephoneEntity);
    // 根据simpleInformation的Id获取detailInformation
    DescriptionBO getDescriptionBySimpleInformationId(DescriptionRequest descriptionRequest);
    // 根据detailInformation的Id更新detailInformation
    void updateDescriptionBySimpleInformationId(UpdateDescriptionRequest updateDescriptionRequest);
    // 根据simpleInformation的Id删除detailInformation
    void deleteDetailInformationById(int id);
    // 根据id查询是否可以更新
    UpdateAllowBO allowUpdate(Integer id);
    // 更该众筹信息状态为0
    void updateStatusToZero(UpdateDescriptionRequest updateDescriptionRequest);
}
